home *** CD-ROM | disk | FTP | other *** search
- 153
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- PrintFile
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baPrintFile prints a document, using the program that the file is associated with.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baPrintFile( FileName )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- FileName is the name of the file to print. The full path name should be supplied.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns an error code. If the return is less than 32 than an error occurred.
- --- RECORDSEPARATOR ---
- Possible errors include:
- --- RECORDSEPARATOR ---
- 0
- --- RECORDSEPARATOR ---
- System was out of memory.
- --- RECORDSEPARATOR ---
- 2
- --- RECORDSEPARATOR ---
- File was not found.
- --- RECORDSEPARATOR ---
- 3
- --- RECORDSEPARATOR ---
- Path was not found.
- --- RECORDSEPARATOR ---
- 5
- --- RECORDSEPARATOR ---
- Sharing or network-protection error.
- --- RECORDSEPARATOR ---
- 6
- --- RECORDSEPARATOR ---
- Library required separate data segments for each task.
- --- RECORDSEPARATOR ---
- 8
- --- RECORDSEPARATOR ---
- There was insufficient memory to start the application.
- --- RECORDSEPARATOR ---
- 10
- --- RECORDSEPARATOR ---
- Windows version was incorrect.
- --- RECORDSEPARATOR ---
- 11
- --- RECORDSEPARATOR ---
- Executable file was invalid. Either it was not a Windows application or there was an
- --- RECORDSEPARATOR ---
- error in the .EXE image.
- --- RECORDSEPARATOR ---
- 12
- --- RECORDSEPARATOR ---
- Application was designed for a different operating system.
- --- RECORDSEPARATOR ---
- 13
- --- RECORDSEPARATOR ---
- Application was designed for MS-DOS 4.0.
- --- RECORDSEPARATOR ---
- 14
- --- RECORDSEPARATOR ---
- Type of executable file was unknown.
- --- RECORDSEPARATOR ---
- 15
- --- RECORDSEPARATOR ---
- Attempt was made to load a real
- --- RECORDSEPARATOR ---
- -mode application (developed for an earlier version
- --- RECORDSEPARATOR ---
- of Windows).
- --- RECORDSEPARATOR ---
- 16
- --- RECORDSEPARATOR ---
- Attempt was made to load a second instance of an executable file containing multiple
- --- RECORDSEPARATOR ---
- data segments that were not marked read-only.
- --- RECORDSEPARATOR ---
- 19
- --- RECORDSEPARATOR ---
- Attempt was made to load a compressed executable file. The file must be
- --- RECORDSEPARATOR ---
- decom
- --- RECORDSEPARATOR ---
- pressed before it can be loaded.
- --- RECORDSEPARATOR ---
- 20
- --- RECORDSEPARATOR ---
- Dynamic-link library (DLL) file was invalid. One of the DLLs required to run this
- --- RECORDSEPARATOR ---
- application was corrupt.
- --- RECORDSEPARATOR ---
- 21
- --- RECORDSEPARATOR ---
- Application requires 32-bit extensions.
- --- RECORDSEPARATOR ---
- 26
- --- RECORDSEPARATOR ---
- A sharing violation occurred.
- --- RECORDSEPARATOR ---
- 27
- --- RECORDSEPARATOR ---
- The filename association is incomplete or invalid.
- --- RECORDSEPARATOR ---
- 29
- --- RECORDSEPARATOR ---
- The DDE transaction failed.
- --- RECORDSEPARATOR ---
- 30
- --- RECORDSEPARATOR ---
- The DDE transaction could not be completed because other DDE transactions were
- --- RECORDSEPARATOR ---
- being processed.
- --- RECORDSEPARATOR ---
- 31
- --- RECORDSEPARATOR ---
- There is no application associated with the given filename extension.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set OK = baPrintFile( the pathName & "test.txt" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baPrintFile( FileLocation ^ "test.txt" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , an error will always return an error value of 0.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baOpenFile